package _00_LianXi._30_LianXi;

public class Test {

	public static void main(String[] args) {
		Student s1 = new Student("小明", "男");
		Student s2 = new Student("小红", "女");
		Lecturer l1 = new Lecturer("孙老师", "男");
		Lecturer l2 = new Lecturer("王老师", "女");
		Instructor i1 = new Instructor("张三", "男");
		Instructor i2 = new Instructor("李四", "女");
		// 小明的老师为王老师
		s1.setLecturer(l2.name);
		// 小红的老师为孙老师
		s2.setLecturer(l1.name);
		// 他们的辅导员都为张三
		s1.setInstructor(i1.name);
		s2.setInstructor(i1.name);
//		System.out.println(s1);
//		System.out.println(s2);
		// 运行结果一样
		s1.getDailyWork();
		s2.getDailyWork();
	}

}
